Page({
	data: {
	  newsDetail: null
	},
	
	onLoad(options) {
	  if (options.data) {
		const newsData = JSON.parse(decodeURIComponent(options.data))
		this.setData({
		  newsDetail: {
			title: newsData.title,
			author: newsData.author,
			date: newsData.date,
			image: newsData.image,
			text: newsData.text
		  }
		})
		wx.setNavigationBarTitle({ title: newsData.title })
	  }
	}
  })